Release 10.1A: OpenEdge Data Management:
DataServer for Microsoft SQL Server


Closed Stored-Procedure statement

For a RDBMS stored procedure, a PROC-STATUS received value indicates that the procedure has completed execution and makes available the return code value and any output parameters. For a send–sql–statement stored procedure, CLOSE STORED–PROCEDURE closes the SQL cursor used by the procedure, as shown:

Syntax
CLOSE STORED-PROCEDURE procedure-name
  [ integer-field = PROC-STATUS ]
  [ WHERE PROC-HANDLE = integer-field ] 

procedure

The name of the stored procedure that you want to close or the built-in procedure name, send–sql–statement.

integer–field = PROC–STATUS

Assigns the return value from a stored procedure to the specified integer field or variable (integer–field).

WHERE PROC–HANDLE = integer–field

An integer field or variable whose value uniquely identifies the stored procedure that produces the results returned from the data source or the SQL cursor of a send–sql–statement stored procedure.

Consider these points concerning the CLOSED STORED-PROCEDURE statement:


Copyright © 2005 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095